<?php
$this->pageTitle = 'My Contacts - ' . Yii::app()->name;
$this->sectionTitle = 'Contacts';

$this->menu = array(
    array('label' => '<span class="contact-add"></span>add contact', 'url' => array('contact/create'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
    array('label' => '<span class="contact-manage"></span>manage contacts', 'url' => array('contact/manage'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
    array('label' => '<span class="group-add"></span>add contact group', 'url' => array('contactgroup/create'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
    array('label' => '<span class="group-manage"></span>manage contact groups', 'url' => array('contactGroup/manage'),
        'itemOptions' => array('class' => 'action'),
        'linkOptions' => array('class' => 'button button-blue')),
);

$this->viewModes = array(
    array('label' => 'all contacts', 'url' => array('contact/index'),),
    array('label' => 'all contact groups', 'url' => array('contactGroup/index'),),
);
?>

<?php

$this->widget('zii.widgets.CListView', array(
    'dataProvider' => $dataProvider,
    'itemView' => '_view',
    'itemsTagName' => 'ul',
    'template' => '{sorter}{items}{pager}',
    'itemsCssClass' => 'listing list-view',
    'htmlOptions' => array('class' => '',),
));
?>
